class ArticleApi < ActionWebService::API::Base
	
		api_method :ins_article,
		            :expects => [{:title=>:string},{:synopsis=>:string},{:body=>:string},{:user_published_by=>:string},{:media_url=>:string},{:email_addr=>:string},{:category_f=>:string},{:photou=>:string},{:uprofile=>:string},{:categoryt_f=>:string},{:tagn=>:string}],
								:returns => [:boolean]	
			api_method :del_article,
		            :expects => [{:title=>:string}],
								:returns => [:boolean]
			api_method :upd_article,
		            :expects => [{:orititle=>:string},{:title=>:string},{:synopsis=>:string},{:body=>:string},{:user_published_by=>:string},{:category_f=>:string},{:categoryt_f=>:string},{:tagn=>:string},{:media_url=>:string}],
								:returns => [:boolean]			
								
		api_method :ins_cat1,
		            :expects => [{:name=>:string}],
								:returns => [:boolean]	
			api_method :del_cat1,
		            :expects => [{:name=>:string}],
								:returns => [:boolean]
			api_method :upd_cat1,
		            :expects => [{:name=>:string},{:newname=>:string}],
								:returns => [:boolean]		
								
		api_method :ins_cat2,
		            :expects => [{:name=>:string}],
								:returns => [:boolean]	
			api_method :del_cat2,
		            :expects => [{:name=>:string}],
								:returns => [:boolean]
			api_method :upd_cat2,
		            :expects => [{:name=>:string},{:newname=>:string}],
								:returns => [:boolean]
								
		api_method :ins_comm,
		            :expects => [{:artictitle=>:string},{:body=>:string},{:user_published_by=>:string},{:email_addr=>:string},{:photou=>:string},{:uprofile=>:string}],
								:returns => [:boolean]	
			api_method :del_comm,
		            :expects => [{:artictitle=>:string},{:body=>:string}],
								:returns => [:boolean]
			api_method :upd_comm,
		            :expects => [{:artictitle=>:string},{:oribody=>:string},{:body=>:string}],
								:returns => [:boolean]																																																											
end
